package ooday02;

public class Fish extends Animal{
    Fish(String name,int age,String color,String food){
        super(name,age,color,food);
    }
    //方法重写了
    void eat(){
        System.out.println("一只名字叫"+name+"的，它的年龄是"+age+"岁，颜色是"+color+"的鱼,正在嘎嘎炫"+food);
    }
}
